Option Strict On
Option Explicit On 

Public Class UCompute
    Inherits System.Windows.Forms.UserControl

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents lblName As System.Windows.Forms.Label
    Friend WithEvents txtName As System.Windows.Forms.TextBox
    Friend WithEvents cboActionMode As System.Windows.Forms.ComboBox
    Friend WithEvents lblActionMode As System.Windows.Forms.Label
    Friend WithEvents ErrorProvider1 As System.Windows.Forms.ErrorProvider
    Friend WithEvents chkRemove As System.Windows.Forms.CheckBox
    Friend WithEvents lblPromptMessage As System.Windows.Forms.Label
    Friend WithEvents txtPromptMessage As System.Windows.Forms.TextBox
    Friend WithEvents lblSelectionField As System.Windows.Forms.Label
    Friend WithEvents cboSelectionField As System.Windows.Forms.ComboBox
    Friend WithEvents lblRelationName As System.Windows.Forms.Label
    Friend WithEvents txtRelationName As System.Windows.Forms.TextBox
    Friend WithEvents lblPresentation As System.Windows.Forms.Label
    Friend WithEvents txtPresentation As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(UCompute))
        Me.lblName = New System.Windows.Forms.Label
        Me.txtName = New System.Windows.Forms.TextBox
        Me.cboActionMode = New System.Windows.Forms.ComboBox
        Me.lblActionMode = New System.Windows.Forms.Label
        Me.ErrorProvider1 = New System.Windows.Forms.ErrorProvider
        Me.lblSelectionField = New System.Windows.Forms.Label
        Me.cboSelectionField = New System.Windows.Forms.ComboBox
        Me.chkRemove = New System.Windows.Forms.CheckBox
        Me.lblPromptMessage = New System.Windows.Forms.Label
        Me.txtPromptMessage = New System.Windows.Forms.TextBox
        Me.lblPresentation = New System.Windows.Forms.Label
        Me.txtPresentation = New System.Windows.Forms.TextBox
        Me.lblRelationName = New System.Windows.Forms.Label
        Me.txtRelationName = New System.Windows.Forms.TextBox
        Me.SuspendLayout()
        '
        'lblName
        '
        Me.lblName.AccessibleDescription = resources.GetString("lblName.AccessibleDescription")
        Me.lblName.AccessibleName = resources.GetString("lblName.AccessibleName")
        Me.lblName.Anchor = CType(resources.GetObject("lblName.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblName.AutoSize = CType(resources.GetObject("lblName.AutoSize"), Boolean)
        Me.lblName.Dock = CType(resources.GetObject("lblName.Dock"), System.Windows.Forms.DockStyle)
        Me.lblName.Enabled = CType(resources.GetObject("lblName.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblName, resources.GetString("lblName.Error"))
        Me.lblName.Font = CType(resources.GetObject("lblName.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblName, CType(resources.GetObject("lblName.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblName, CType(resources.GetObject("lblName.IconPadding"), Integer))
        Me.lblName.Image = CType(resources.GetObject("lblName.Image"), System.Drawing.Image)
        Me.lblName.ImageAlign = CType(resources.GetObject("lblName.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblName.ImageIndex = CType(resources.GetObject("lblName.ImageIndex"), Integer)
        Me.lblName.ImeMode = CType(resources.GetObject("lblName.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblName.Location = CType(resources.GetObject("lblName.Location"), System.Drawing.Point)
        Me.lblName.Name = "lblName"
        Me.lblName.RightToLeft = CType(resources.GetObject("lblName.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblName.Size = CType(resources.GetObject("lblName.Size"), System.Drawing.Size)
        Me.lblName.TabIndex = CType(resources.GetObject("lblName.TabIndex"), Integer)
        Me.lblName.Text = resources.GetString("lblName.Text")
        Me.lblName.TextAlign = CType(resources.GetObject("lblName.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblName.Visible = CType(resources.GetObject("lblName.Visible"), Boolean)
        '
        'txtName
        '
        Me.txtName.AccessibleDescription = resources.GetString("txtName.AccessibleDescription")
        Me.txtName.AccessibleName = resources.GetString("txtName.AccessibleName")
        Me.txtName.Anchor = CType(resources.GetObject("txtName.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.txtName.AutoSize = CType(resources.GetObject("txtName.AutoSize"), Boolean)
        Me.txtName.BackgroundImage = CType(resources.GetObject("txtName.BackgroundImage"), System.Drawing.Image)
        Me.txtName.Dock = CType(resources.GetObject("txtName.Dock"), System.Windows.Forms.DockStyle)
        Me.txtName.Enabled = CType(resources.GetObject("txtName.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.txtName, resources.GetString("txtName.Error"))
        Me.txtName.Font = CType(resources.GetObject("txtName.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.txtName, CType(resources.GetObject("txtName.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.txtName, CType(resources.GetObject("txtName.IconPadding"), Integer))
        Me.txtName.ImeMode = CType(resources.GetObject("txtName.ImeMode"), System.Windows.Forms.ImeMode)
        Me.txtName.Location = CType(resources.GetObject("txtName.Location"), System.Drawing.Point)
        Me.txtName.MaxLength = CType(resources.GetObject("txtName.MaxLength"), Integer)
        Me.txtName.Multiline = CType(resources.GetObject("txtName.Multiline"), Boolean)
        Me.txtName.Name = "txtName"
        Me.txtName.PasswordChar = CType(resources.GetObject("txtName.PasswordChar"), Char)
        Me.txtName.RightToLeft = CType(resources.GetObject("txtName.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.txtName.ScrollBars = CType(resources.GetObject("txtName.ScrollBars"), System.Windows.Forms.ScrollBars)
        Me.txtName.Size = CType(resources.GetObject("txtName.Size"), System.Drawing.Size)
        Me.txtName.TabIndex = CType(resources.GetObject("txtName.TabIndex"), Integer)
        Me.txtName.Text = resources.GetString("txtName.Text")
        Me.txtName.TextAlign = CType(resources.GetObject("txtName.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.txtName.Visible = CType(resources.GetObject("txtName.Visible"), Boolean)
        Me.txtName.WordWrap = CType(resources.GetObject("txtName.WordWrap"), Boolean)
        '
        'cboActionMode
        '
        Me.cboActionMode.AccessibleDescription = resources.GetString("cboActionMode.AccessibleDescription")
        Me.cboActionMode.AccessibleName = resources.GetString("cboActionMode.AccessibleName")
        Me.cboActionMode.Anchor = CType(resources.GetObject("cboActionMode.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboActionMode.BackgroundImage = CType(resources.GetObject("cboActionMode.BackgroundImage"), System.Drawing.Image)
        Me.cboActionMode.Dock = CType(resources.GetObject("cboActionMode.Dock"), System.Windows.Forms.DockStyle)
        Me.cboActionMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboActionMode.Enabled = CType(resources.GetObject("cboActionMode.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.cboActionMode, resources.GetString("cboActionMode.Error"))
        Me.cboActionMode.Font = CType(resources.GetObject("cboActionMode.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.cboActionMode, CType(resources.GetObject("cboActionMode.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.cboActionMode, CType(resources.GetObject("cboActionMode.IconPadding"), Integer))
        Me.cboActionMode.ImeMode = CType(resources.GetObject("cboActionMode.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboActionMode.IntegralHeight = CType(resources.GetObject("cboActionMode.IntegralHeight"), Boolean)
        Me.cboActionMode.ItemHeight = CType(resources.GetObject("cboActionMode.ItemHeight"), Integer)
        Me.cboActionMode.Location = CType(resources.GetObject("cboActionMode.Location"), System.Drawing.Point)
        Me.cboActionMode.MaxDropDownItems = CType(resources.GetObject("cboActionMode.MaxDropDownItems"), Integer)
        Me.cboActionMode.MaxLength = CType(resources.GetObject("cboActionMode.MaxLength"), Integer)
        Me.cboActionMode.Name = "cboActionMode"
        Me.cboActionMode.RightToLeft = CType(resources.GetObject("cboActionMode.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboActionMode.Size = CType(resources.GetObject("cboActionMode.Size"), System.Drawing.Size)
        Me.cboActionMode.TabIndex = CType(resources.GetObject("cboActionMode.TabIndex"), Integer)
        Me.cboActionMode.Text = resources.GetString("cboActionMode.Text")
        Me.cboActionMode.Visible = CType(resources.GetObject("cboActionMode.Visible"), Boolean)
        '
        'lblActionMode
        '
        Me.lblActionMode.AccessibleDescription = resources.GetString("lblActionMode.AccessibleDescription")
        Me.lblActionMode.AccessibleName = resources.GetString("lblActionMode.AccessibleName")
        Me.lblActionMode.Anchor = CType(resources.GetObject("lblActionMode.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblActionMode.AutoSize = CType(resources.GetObject("lblActionMode.AutoSize"), Boolean)
        Me.lblActionMode.Dock = CType(resources.GetObject("lblActionMode.Dock"), System.Windows.Forms.DockStyle)
        Me.lblActionMode.Enabled = CType(resources.GetObject("lblActionMode.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblActionMode, resources.GetString("lblActionMode.Error"))
        Me.lblActionMode.Font = CType(resources.GetObject("lblActionMode.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblActionMode, CType(resources.GetObject("lblActionMode.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblActionMode, CType(resources.GetObject("lblActionMode.IconPadding"), Integer))
        Me.lblActionMode.Image = CType(resources.GetObject("lblActionMode.Image"), System.Drawing.Image)
        Me.lblActionMode.ImageAlign = CType(resources.GetObject("lblActionMode.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblActionMode.ImageIndex = CType(resources.GetObject("lblActionMode.ImageIndex"), Integer)
        Me.lblActionMode.ImeMode = CType(resources.GetObject("lblActionMode.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblActionMode.Location = CType(resources.GetObject("lblActionMode.Location"), System.Drawing.Point)
        Me.lblActionMode.Name = "lblActionMode"
        Me.lblActionMode.RightToLeft = CType(resources.GetObject("lblActionMode.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblActionMode.Size = CType(resources.GetObject("lblActionMode.Size"), System.Drawing.Size)
        Me.lblActionMode.TabIndex = CType(resources.GetObject("lblActionMode.TabIndex"), Integer)
        Me.lblActionMode.Text = resources.GetString("lblActionMode.Text")
        Me.lblActionMode.TextAlign = CType(resources.GetObject("lblActionMode.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblActionMode.Visible = CType(resources.GetObject("lblActionMode.Visible"), Boolean)
        '
        'ErrorProvider1
        '
        Me.ErrorProvider1.ContainerControl = Me
        Me.ErrorProvider1.Icon = CType(resources.GetObject("ErrorProvider1.Icon"), System.Drawing.Icon)
        '
        'lblSelectionField
        '
        Me.lblSelectionField.AccessibleDescription = resources.GetString("lblSelectionField.AccessibleDescription")
        Me.lblSelectionField.AccessibleName = resources.GetString("lblSelectionField.AccessibleName")
        Me.lblSelectionField.Anchor = CType(resources.GetObject("lblSelectionField.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblSelectionField.AutoSize = CType(resources.GetObject("lblSelectionField.AutoSize"), Boolean)
        Me.lblSelectionField.Dock = CType(resources.GetObject("lblSelectionField.Dock"), System.Windows.Forms.DockStyle)
        Me.lblSelectionField.Enabled = CType(resources.GetObject("lblSelectionField.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblSelectionField, resources.GetString("lblSelectionField.Error"))
        Me.lblSelectionField.Font = CType(resources.GetObject("lblSelectionField.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblSelectionField, CType(resources.GetObject("lblSelectionField.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblSelectionField, CType(resources.GetObject("lblSelectionField.IconPadding"), Integer))
        Me.lblSelectionField.Image = CType(resources.GetObject("lblSelectionField.Image"), System.Drawing.Image)
        Me.lblSelectionField.ImageAlign = CType(resources.GetObject("lblSelectionField.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblSelectionField.ImageIndex = CType(resources.GetObject("lblSelectionField.ImageIndex"), Integer)
        Me.lblSelectionField.ImeMode = CType(resources.GetObject("lblSelectionField.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblSelectionField.Location = CType(resources.GetObject("lblSelectionField.Location"), System.Drawing.Point)
        Me.lblSelectionField.Name = "lblSelectionField"
        Me.lblSelectionField.RightToLeft = CType(resources.GetObject("lblSelectionField.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblSelectionField.Size = CType(resources.GetObject("lblSelectionField.Size"), System.Drawing.Size)
        Me.lblSelectionField.TabIndex = CType(resources.GetObject("lblSelectionField.TabIndex"), Integer)
        Me.lblSelectionField.Text = resources.GetString("lblSelectionField.Text")
        Me.lblSelectionField.TextAlign = CType(resources.GetObject("lblSelectionField.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblSelectionField.Visible = CType(resources.GetObject("lblSelectionField.Visible"), Boolean)
        '
        'cboSelectionField
        '
        Me.cboSelectionField.AccessibleDescription = resources.GetString("cboSelectionField.AccessibleDescription")
        Me.cboSelectionField.AccessibleName = resources.GetString("cboSelectionField.AccessibleName")
        Me.cboSelectionField.Anchor = CType(resources.GetObject("cboSelectionField.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboSelectionField.BackgroundImage = CType(resources.GetObject("cboSelectionField.BackgroundImage"), System.Drawing.Image)
        Me.cboSelectionField.Dock = CType(resources.GetObject("cboSelectionField.Dock"), System.Windows.Forms.DockStyle)
        Me.cboSelectionField.Enabled = CType(resources.GetObject("cboSelectionField.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.cboSelectionField, resources.GetString("cboSelectionField.Error"))
        Me.cboSelectionField.Font = CType(resources.GetObject("cboSelectionField.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.cboSelectionField, CType(resources.GetObject("cboSelectionField.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.cboSelectionField, CType(resources.GetObject("cboSelectionField.IconPadding"), Integer))
        Me.cboSelectionField.ImeMode = CType(resources.GetObject("cboSelectionField.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboSelectionField.IntegralHeight = CType(resources.GetObject("cboSelectionField.IntegralHeight"), Boolean)
        Me.cboSelectionField.ItemHeight = CType(resources.GetObject("cboSelectionField.ItemHeight"), Integer)
        Me.cboSelectionField.Location = CType(resources.GetObject("cboSelectionField.Location"), System.Drawing.Point)
        Me.cboSelectionField.MaxDropDownItems = CType(resources.GetObject("cboSelectionField.MaxDropDownItems"), Integer)
        Me.cboSelectionField.MaxLength = CType(resources.GetObject("cboSelectionField.MaxLength"), Integer)
        Me.cboSelectionField.Name = "cboSelectionField"
        Me.cboSelectionField.RightToLeft = CType(resources.GetObject("cboSelectionField.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboSelectionField.Size = CType(resources.GetObject("cboSelectionField.Size"), System.Drawing.Size)
        Me.cboSelectionField.TabIndex = CType(resources.GetObject("cboSelectionField.TabIndex"), Integer)
        Me.cboSelectionField.Text = resources.GetString("cboSelectionField.Text")
        Me.cboSelectionField.Visible = CType(resources.GetObject("cboSelectionField.Visible"), Boolean)
        '
        'chkRemove
        '
        Me.chkRemove.AccessibleDescription = resources.GetString("chkRemove.AccessibleDescription")
        Me.chkRemove.AccessibleName = resources.GetString("chkRemove.AccessibleName")
        Me.chkRemove.Anchor = CType(resources.GetObject("chkRemove.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.chkRemove.Appearance = CType(resources.GetObject("chkRemove.Appearance"), System.Windows.Forms.Appearance)
        Me.chkRemove.BackgroundImage = CType(resources.GetObject("chkRemove.BackgroundImage"), System.Drawing.Image)
        Me.chkRemove.CheckAlign = CType(resources.GetObject("chkRemove.CheckAlign"), System.Drawing.ContentAlignment)
        Me.chkRemove.Dock = CType(resources.GetObject("chkRemove.Dock"), System.Windows.Forms.DockStyle)
        Me.chkRemove.Enabled = CType(resources.GetObject("chkRemove.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.chkRemove, resources.GetString("chkRemove.Error"))
        Me.chkRemove.FlatStyle = CType(resources.GetObject("chkRemove.FlatStyle"), System.Windows.Forms.FlatStyle)
        Me.chkRemove.Font = CType(resources.GetObject("chkRemove.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.chkRemove, CType(resources.GetObject("chkRemove.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.chkRemove, CType(resources.GetObject("chkRemove.IconPadding"), Integer))
        Me.chkRemove.Image = CType(resources.GetObject("chkRemove.Image"), System.Drawing.Image)
        Me.chkRemove.ImageAlign = CType(resources.GetObject("chkRemove.ImageAlign"), System.Drawing.ContentAlignment)
        Me.chkRemove.ImageIndex = CType(resources.GetObject("chkRemove.ImageIndex"), Integer)
        Me.chkRemove.ImeMode = CType(resources.GetObject("chkRemove.ImeMode"), System.Windows.Forms.ImeMode)
        Me.chkRemove.Location = CType(resources.GetObject("chkRemove.Location"), System.Drawing.Point)
        Me.chkRemove.Name = "chkRemove"
        Me.chkRemove.RightToLeft = CType(resources.GetObject("chkRemove.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.chkRemove.Size = CType(resources.GetObject("chkRemove.Size"), System.Drawing.Size)
        Me.chkRemove.TabIndex = CType(resources.GetObject("chkRemove.TabIndex"), Integer)
        Me.chkRemove.Text = resources.GetString("chkRemove.Text")
        Me.chkRemove.TextAlign = CType(resources.GetObject("chkRemove.TextAlign"), System.Drawing.ContentAlignment)
        Me.chkRemove.Visible = CType(resources.GetObject("chkRemove.Visible"), Boolean)
        '
        'lblPromptMessage
        '
        Me.lblPromptMessage.AccessibleDescription = resources.GetString("lblPromptMessage.AccessibleDescription")
        Me.lblPromptMessage.AccessibleName = resources.GetString("lblPromptMessage.AccessibleName")
        Me.lblPromptMessage.Anchor = CType(resources.GetObject("lblPromptMessage.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblPromptMessage.AutoSize = CType(resources.GetObject("lblPromptMessage.AutoSize"), Boolean)
        Me.lblPromptMessage.Dock = CType(resources.GetObject("lblPromptMessage.Dock"), System.Windows.Forms.DockStyle)
        Me.lblPromptMessage.Enabled = CType(resources.GetObject("lblPromptMessage.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblPromptMessage, resources.GetString("lblPromptMessage.Error"))
        Me.lblPromptMessage.Font = CType(resources.GetObject("lblPromptMessage.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblPromptMessage, CType(resources.GetObject("lblPromptMessage.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblPromptMessage, CType(resources.GetObject("lblPromptMessage.IconPadding"), Integer))
        Me.lblPromptMessage.Image = CType(resources.GetObject("lblPromptMessage.Image"), System.Drawing.Image)
        Me.lblPromptMessage.ImageAlign = CType(resources.GetObject("lblPromptMessage.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblPromptMessage.ImageIndex = CType(resources.GetObject("lblPromptMessage.ImageIndex"), Integer)
        Me.lblPromptMessage.ImeMode = CType(resources.GetObject("lblPromptMessage.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblPromptMessage.Location = CType(resources.GetObject("lblPromptMessage.Location"), System.Drawing.Point)
        Me.lblPromptMessage.Name = "lblPromptMessage"
        Me.lblPromptMessage.RightToLeft = CType(resources.GetObject("lblPromptMessage.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblPromptMessage.Size = CType(resources.GetObject("lblPromptMessage.Size"), System.Drawing.Size)
        Me.lblPromptMessage.TabIndex = CType(resources.GetObject("lblPromptMessage.TabIndex"), Integer)
        Me.lblPromptMessage.Text = resources.GetString("lblPromptMessage.Text")
        Me.lblPromptMessage.TextAlign = CType(resources.GetObject("lblPromptMessage.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblPromptMessage.Visible = CType(resources.GetObject("lblPromptMessage.Visible"), Boolean)
        '
        'txtPromptMessage
        '
        Me.txtPromptMessage.AccessibleDescription = resources.GetString("txtPromptMessage.AccessibleDescription")
        Me.txtPromptMessage.AccessibleName = resources.GetString("txtPromptMessage.AccessibleName")
        Me.txtPromptMessage.Anchor = CType(resources.GetObject("txtPromptMessage.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.txtPromptMessage.AutoSize = CType(resources.GetObject("txtPromptMessage.AutoSize"), Boolean)
        Me.txtPromptMessage.BackgroundImage = CType(resources.GetObject("txtPromptMessage.BackgroundImage"), System.Drawing.Image)
        Me.txtPromptMessage.Dock = CType(resources.GetObject("txtPromptMessage.Dock"), System.Windows.Forms.DockStyle)
        Me.txtPromptMessage.Enabled = CType(resources.GetObject("txtPromptMessage.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.txtPromptMessage, resources.GetString("txtPromptMessage.Error"))
        Me.txtPromptMessage.Font = CType(resources.GetObject("txtPromptMessage.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.txtPromptMessage, CType(resources.GetObject("txtPromptMessage.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.txtPromptMessage, CType(resources.GetObject("txtPromptMessage.IconPadding"), Integer))
        Me.txtPromptMessage.ImeMode = CType(resources.GetObject("txtPromptMessage.ImeMode"), System.Windows.Forms.ImeMode)
        Me.txtPromptMessage.Location = CType(resources.GetObject("txtPromptMessage.Location"), System.Drawing.Point)
        Me.txtPromptMessage.MaxLength = CType(resources.GetObject("txtPromptMessage.MaxLength"), Integer)
        Me.txtPromptMessage.Multiline = CType(resources.GetObject("txtPromptMessage.Multiline"), Boolean)
        Me.txtPromptMessage.Name = "txtPromptMessage"
        Me.txtPromptMessage.PasswordChar = CType(resources.GetObject("txtPromptMessage.PasswordChar"), Char)
        Me.txtPromptMessage.RightToLeft = CType(resources.GetObject("txtPromptMessage.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.txtPromptMessage.ScrollBars = CType(resources.GetObject("txtPromptMessage.ScrollBars"), System.Windows.Forms.ScrollBars)
        Me.txtPromptMessage.Size = CType(resources.GetObject("txtPromptMessage.Size"), System.Drawing.Size)
        Me.txtPromptMessage.TabIndex = CType(resources.GetObject("txtPromptMessage.TabIndex"), Integer)
        Me.txtPromptMessage.Text = resources.GetString("txtPromptMessage.Text")
        Me.txtPromptMessage.TextAlign = CType(resources.GetObject("txtPromptMessage.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.txtPromptMessage.Visible = CType(resources.GetObject("txtPromptMessage.Visible"), Boolean)
        Me.txtPromptMessage.WordWrap = CType(resources.GetObject("txtPromptMessage.WordWrap"), Boolean)
        '
        'lblPresentation
        '
        Me.lblPresentation.AccessibleDescription = resources.GetString("lblPresentation.AccessibleDescription")
        Me.lblPresentation.AccessibleName = resources.GetString("lblPresentation.AccessibleName")
        Me.lblPresentation.Anchor = CType(resources.GetObject("lblPresentation.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblPresentation.AutoSize = CType(resources.GetObject("lblPresentation.AutoSize"), Boolean)
        Me.lblPresentation.Dock = CType(resources.GetObject("lblPresentation.Dock"), System.Windows.Forms.DockStyle)
        Me.lblPresentation.Enabled = CType(resources.GetObject("lblPresentation.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblPresentation, resources.GetString("lblPresentation.Error"))
        Me.lblPresentation.Font = CType(resources.GetObject("lblPresentation.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblPresentation, CType(resources.GetObject("lblPresentation.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblPresentation, CType(resources.GetObject("lblPresentation.IconPadding"), Integer))
        Me.lblPresentation.Image = CType(resources.GetObject("lblPresentation.Image"), System.Drawing.Image)
        Me.lblPresentation.ImageAlign = CType(resources.GetObject("lblPresentation.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblPresentation.ImageIndex = CType(resources.GetObject("lblPresentation.ImageIndex"), Integer)
        Me.lblPresentation.ImeMode = CType(resources.GetObject("lblPresentation.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblPresentation.Location = CType(resources.GetObject("lblPresentation.Location"), System.Drawing.Point)
        Me.lblPresentation.Name = "lblPresentation"
        Me.lblPresentation.RightToLeft = CType(resources.GetObject("lblPresentation.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblPresentation.Size = CType(resources.GetObject("lblPresentation.Size"), System.Drawing.Size)
        Me.lblPresentation.TabIndex = CType(resources.GetObject("lblPresentation.TabIndex"), Integer)
        Me.lblPresentation.Text = resources.GetString("lblPresentation.Text")
        Me.lblPresentation.TextAlign = CType(resources.GetObject("lblPresentation.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblPresentation.Visible = CType(resources.GetObject("lblPresentation.Visible"), Boolean)
        '
        'txtPresentation
        '
        Me.txtPresentation.AccessibleDescription = resources.GetString("txtPresentation.AccessibleDescription")
        Me.txtPresentation.AccessibleName = resources.GetString("txtPresentation.AccessibleName")
        Me.txtPresentation.Anchor = CType(resources.GetObject("txtPresentation.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.txtPresentation.AutoSize = CType(resources.GetObject("txtPresentation.AutoSize"), Boolean)
        Me.txtPresentation.BackgroundImage = CType(resources.GetObject("txtPresentation.BackgroundImage"), System.Drawing.Image)
        Me.txtPresentation.Dock = CType(resources.GetObject("txtPresentation.Dock"), System.Windows.Forms.DockStyle)
        Me.txtPresentation.Enabled = CType(resources.GetObject("txtPresentation.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.txtPresentation, resources.GetString("txtPresentation.Error"))
        Me.txtPresentation.Font = CType(resources.GetObject("txtPresentation.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.txtPresentation, CType(resources.GetObject("txtPresentation.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.txtPresentation, CType(resources.GetObject("txtPresentation.IconPadding"), Integer))
        Me.txtPresentation.ImeMode = CType(resources.GetObject("txtPresentation.ImeMode"), System.Windows.Forms.ImeMode)
        Me.txtPresentation.Location = CType(resources.GetObject("txtPresentation.Location"), System.Drawing.Point)
        Me.txtPresentation.MaxLength = CType(resources.GetObject("txtPresentation.MaxLength"), Integer)
        Me.txtPresentation.Multiline = CType(resources.GetObject("txtPresentation.Multiline"), Boolean)
        Me.txtPresentation.Name = "txtPresentation"
        Me.txtPresentation.PasswordChar = CType(resources.GetObject("txtPresentation.PasswordChar"), Char)
        Me.txtPresentation.RightToLeft = CType(resources.GetObject("txtPresentation.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.txtPresentation.ScrollBars = CType(resources.GetObject("txtPresentation.ScrollBars"), System.Windows.Forms.ScrollBars)
        Me.txtPresentation.Size = CType(resources.GetObject("txtPresentation.Size"), System.Drawing.Size)
        Me.txtPresentation.TabIndex = CType(resources.GetObject("txtPresentation.TabIndex"), Integer)
        Me.txtPresentation.Text = resources.GetString("txtPresentation.Text")
        Me.txtPresentation.TextAlign = CType(resources.GetObject("txtPresentation.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.txtPresentation.Visible = CType(resources.GetObject("txtPresentation.Visible"), Boolean)
        Me.txtPresentation.WordWrap = CType(resources.GetObject("txtPresentation.WordWrap"), Boolean)
        '
        'lblRelationName
        '
        Me.lblRelationName.AccessibleDescription = resources.GetString("lblRelationName.AccessibleDescription")
        Me.lblRelationName.AccessibleName = resources.GetString("lblRelationName.AccessibleName")
        Me.lblRelationName.Anchor = CType(resources.GetObject("lblRelationName.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblRelationName.AutoSize = CType(resources.GetObject("lblRelationName.AutoSize"), Boolean)
        Me.lblRelationName.Dock = CType(resources.GetObject("lblRelationName.Dock"), System.Windows.Forms.DockStyle)
        Me.lblRelationName.Enabled = CType(resources.GetObject("lblRelationName.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.lblRelationName, resources.GetString("lblRelationName.Error"))
        Me.lblRelationName.Font = CType(resources.GetObject("lblRelationName.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.lblRelationName, CType(resources.GetObject("lblRelationName.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.lblRelationName, CType(resources.GetObject("lblRelationName.IconPadding"), Integer))
        Me.lblRelationName.Image = CType(resources.GetObject("lblRelationName.Image"), System.Drawing.Image)
        Me.lblRelationName.ImageAlign = CType(resources.GetObject("lblRelationName.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblRelationName.ImageIndex = CType(resources.GetObject("lblRelationName.ImageIndex"), Integer)
        Me.lblRelationName.ImeMode = CType(resources.GetObject("lblRelationName.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblRelationName.Location = CType(resources.GetObject("lblRelationName.Location"), System.Drawing.Point)
        Me.lblRelationName.Name = "lblRelationName"
        Me.lblRelationName.RightToLeft = CType(resources.GetObject("lblRelationName.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblRelationName.Size = CType(resources.GetObject("lblRelationName.Size"), System.Drawing.Size)
        Me.lblRelationName.TabIndex = CType(resources.GetObject("lblRelationName.TabIndex"), Integer)
        Me.lblRelationName.Text = resources.GetString("lblRelationName.Text")
        Me.lblRelationName.TextAlign = CType(resources.GetObject("lblRelationName.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblRelationName.Visible = CType(resources.GetObject("lblRelationName.Visible"), Boolean)
        '
        'txtRelationName
        '
        Me.txtRelationName.AccessibleDescription = resources.GetString("txtRelationName.AccessibleDescription")
        Me.txtRelationName.AccessibleName = resources.GetString("txtRelationName.AccessibleName")
        Me.txtRelationName.Anchor = CType(resources.GetObject("txtRelationName.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.txtRelationName.AutoSize = CType(resources.GetObject("txtRelationName.AutoSize"), Boolean)
        Me.txtRelationName.BackgroundImage = CType(resources.GetObject("txtRelationName.BackgroundImage"), System.Drawing.Image)
        Me.txtRelationName.Dock = CType(resources.GetObject("txtRelationName.Dock"), System.Windows.Forms.DockStyle)
        Me.txtRelationName.Enabled = CType(resources.GetObject("txtRelationName.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me.txtRelationName, resources.GetString("txtRelationName.Error"))
        Me.txtRelationName.Font = CType(resources.GetObject("txtRelationName.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me.txtRelationName, CType(resources.GetObject("txtRelationName.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me.txtRelationName, CType(resources.GetObject("txtRelationName.IconPadding"), Integer))
        Me.txtRelationName.ImeMode = CType(resources.GetObject("txtRelationName.ImeMode"), System.Windows.Forms.ImeMode)
        Me.txtRelationName.Location = CType(resources.GetObject("txtRelationName.Location"), System.Drawing.Point)
        Me.txtRelationName.MaxLength = CType(resources.GetObject("txtRelationName.MaxLength"), Integer)
        Me.txtRelationName.Multiline = CType(resources.GetObject("txtRelationName.Multiline"), Boolean)
        Me.txtRelationName.Name = "txtRelationName"
        Me.txtRelationName.PasswordChar = CType(resources.GetObject("txtRelationName.PasswordChar"), Char)
        Me.txtRelationName.RightToLeft = CType(resources.GetObject("txtRelationName.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.txtRelationName.ScrollBars = CType(resources.GetObject("txtRelationName.ScrollBars"), System.Windows.Forms.ScrollBars)
        Me.txtRelationName.Size = CType(resources.GetObject("txtRelationName.Size"), System.Drawing.Size)
        Me.txtRelationName.TabIndex = CType(resources.GetObject("txtRelationName.TabIndex"), Integer)
        Me.txtRelationName.Text = resources.GetString("txtRelationName.Text")
        Me.txtRelationName.TextAlign = CType(resources.GetObject("txtRelationName.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.txtRelationName.Visible = CType(resources.GetObject("txtRelationName.Visible"), Boolean)
        Me.txtRelationName.WordWrap = CType(resources.GetObject("txtRelationName.WordWrap"), Boolean)
        '
        'UCompute
        '
        Me.AccessibleDescription = resources.GetString("$this.AccessibleDescription")
        Me.AccessibleName = resources.GetString("$this.AccessibleName")
        Me.AutoScroll = CType(resources.GetObject("$this.AutoScroll"), Boolean)
        Me.AutoScrollMargin = CType(resources.GetObject("$this.AutoScrollMargin"), System.Drawing.Size)
        Me.AutoScrollMinSize = CType(resources.GetObject("$this.AutoScrollMinSize"), System.Drawing.Size)
        Me.BackgroundImage = CType(resources.GetObject("$this.BackgroundImage"), System.Drawing.Image)
        Me.Controls.Add(Me.lblRelationName)
        Me.Controls.Add(Me.txtRelationName)
        Me.Controls.Add(Me.lblPresentation)
        Me.Controls.Add(Me.txtPresentation)
        Me.Controls.Add(Me.lblPromptMessage)
        Me.Controls.Add(Me.txtPromptMessage)
        Me.Controls.Add(Me.chkRemove)
        Me.Controls.Add(Me.lblSelectionField)
        Me.Controls.Add(Me.cboSelectionField)
        Me.Controls.Add(Me.cboActionMode)
        Me.Controls.Add(Me.lblActionMode)
        Me.Controls.Add(Me.lblName)
        Me.Controls.Add(Me.txtName)
        Me.Enabled = CType(resources.GetObject("$this.Enabled"), Boolean)
        Me.ErrorProvider1.SetError(Me, resources.GetString("$this.Error"))
        Me.Font = CType(resources.GetObject("$this.Font"), System.Drawing.Font)
        Me.ErrorProvider1.SetIconAlignment(Me, CType(resources.GetObject("$this.IconAlignment"), System.Windows.Forms.ErrorIconAlignment))
        Me.ErrorProvider1.SetIconPadding(Me, CType(resources.GetObject("$this.IconPadding"), Integer))
        Me.ImeMode = CType(resources.GetObject("$this.ImeMode"), System.Windows.Forms.ImeMode)
        Me.Location = CType(resources.GetObject("$this.Location"), System.Drawing.Point)
        Me.Name = "UCompute"
        Me.RightToLeft = CType(resources.GetObject("$this.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.Size = CType(resources.GetObject("$this.Size"), System.Drawing.Size)
        Me.ResumeLayout(False)

    End Sub

#End Region

    Public Event ValueChanged As EventHandler

    Private Sub UCompute_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        AddHandler txtName.TextChanged, AddressOf OnValueChanged
        AddHandler chkRemove.CheckedChanged, AddressOf OnValueChanged
        AddHandler cboActionMode.SelectionChangeCommitted, AddressOf OnValueChanged
        AddHandler cboSelectionField.TextChanged, AddressOf OnValueChanged
        AddHandler txtPromptMessage.TextChanged, AddressOf OnValueChanged
        AddHandler txtPresentation.TextChanged, AddressOf OnValueChanged
        AddHandler txtRelationName.TextChanged, AddressOf OnValueChanged
    End Sub
    Private Sub txtName_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtName.Validated
        If txtName.Text = "" Then
            ErrorProvider1.SetError(txtName, "Compute Name is required.")
        Else
            ErrorProvider1.SetError(txtName, "")
        End If
    End Sub

    Protected Sub OnValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
        RaiseEvent ValueChanged(Me, New EventArgs)
    End Sub

    Public Sub Prepare(ByVal table As Model10.Table)
        cboActionMode.Items.Clear()
        cboActionMode.Items.Add(Model10.ActionMode.Record)
        cboActionMode.Items.Add(Model10.ActionMode.View)
        cboActionMode.Items.Add(Model10.ActionMode.Table)
        cboActionMode.Items.Add(Model10.ActionMode.Default)
        cboActionMode.Items.Add(Model10.ActionMode.Function)
        '-------------------
        cboSelectionField.Items.Clear()

        Dim dc As DataColumn
        For Each dc In table.DataTable.Columns
            cboSelectionField.Items.Add(dc.ColumnName)
        Next : dc = Nothing
    End Sub

    Public Sub Read(ByVal compute As Model10.Compute)
        txtName.Text = compute.Name
        chkRemove.Checked = compute.Remove
        cboActionMode.SelectedItem = compute.Action
        cboSelectionField.Text = compute.SelectionField
        txtPromptMessage.Text = compute.PromptMessage
        txtPresentation.Text = compute.Presentation
        txtRelationName.Text = compute.RelationName
    End Sub
    Public Sub Write(ByVal compute As Model10.Compute)
        compute.Name = txtName.Text
        compute.Remove = chkRemove.Checked
        compute.Action = CType(cboActionMode.SelectedItem, Model10.ActionMode)
        compute.SelectionField = cboSelectionField.Text
        compute.PromptMessage = txtPromptMessage.Text
        compute.Presentation = txtPresentation.Text
        compute.RelationName = txtRelationName.Text
    End Sub
End Class